package com.nidu.demo.dict.dto;

import com.nidu.demo.base.BaseCmd;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 字典类型添加命令
 *
 * @author auto
 */
@Data
@Schema(description = "字典类型添加命令")
@EqualsAndHashCode(callSuper = true)
public class DictTypeAddCmd extends BaseCmd {

    /**
     * 字典类型名称
     */
    @NotBlank(message = "字典类型名称不能为空")
    @Size(max = 128, message = "字典类型名称长度不能超过128个字符")
    @Schema(description = "字典类型名称", example = "是否")
    private String name;

    /**
     * 字典类型
     */
    @NotBlank(message = "字典类型不能为空")
    @Size(max = 128, message = "字典类型长度不能超过128个字符")
    @Schema(description = "字典类型", example = "boolean-type")
    private String type;

}